package cn.dugcrs.user.service;

import cn.dugcrs.basic.dto.RegisterDto;
import cn.dugcrs.user.domain.User;
import cn.dugcrs.basic.service.IBaseService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gubcog
 * @since 2022-05-08
 */
public interface IUserService extends IBaseService<User> {

    /**
     * 根据手机号查找用户
     * @param phone
     * @return
     */
    User loadByPhone(String phone);

    /**
     *根据邮箱查找用户
     * @param email
     * @return
     */
    User loadByEmail(String email);

    /**
     * 手机用户注册
     * @param dto
     */
    void phoneRegister(RegisterDto dto);


    /**
     * 邮箱用户注册
     * @param dto
     */
    void emailRegister(RegisterDto dto);
}
